﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Xml.Serialization;

namespace LdtJudge.DataEngine.Model.XMLConfigModel.AnalysisLabelModel
{
    [Serializable]
    [XmlRootAttribute("root", IsNullable = false)]
    public class AnalysisLabelListModel
    {
        /// <summary>
        /// 标识信息
        /// </summary>
        [XmlElementAttribute("xmlpath", IsNullable = false)]
        public List<AnalysisLabe> analysisLabes { get; set; }
    }

    /// 标识信息
    /// </summary>
    public class AnalysisLabe
    {
        /// <summary>
        /// 文书类型
        /// </summary>
        [XmlAttribute("casetype")]

        public string Casetype { get; set; }

        /// <summary>
        /// 文书类型中文名称
        /// </summary>
        [XmlAttribute("value")]
        public string Value { get; set; }

        /// <summary>
        /// 文书类型中文名称
        /// </summary>
        [XmlAttribute("name")]
        public string Name { get; set; }

        /// <summary>
        /// 原文
        /// </summary>
        [XmlAttribute("originaltext")]
        public string originaltext { get; set; }

        /// <summary>
        /// 省级
        /// </summary>
        [XmlAttribute("province")]
        public string province { get; set; }

        /// <summary>
        /// 地级
        /// </summary>
        [XmlAttribute("cities")]
        public string cities { get; set; }

        /// <summary>
        /// 县级
        /// </summary>
        [XmlAttribute("county")]
        public string county { get; set; }

        /// <summary>
        /// 乡级
        /// </summary>
        [XmlAttribute("township")]
        public string township { get; set; }

        /// <summary>
        /// 村级
        /// </summary>
        [XmlAttribute("village")]
        public string village { get; set; }

        /// <summary>
        /// 地址
        /// </summary>
        [XmlAttribute("address")]
        public string address { get; set; }

        /// <summary>
        /// 法院ID
        /// </summary>
        [XmlAttribute("courtxpath")]
        public string courtxpath { get; set; }
    }


    /// <summary>
    /// 案由信息实体
    /// </summary>
    public class CaseTypeLabel
    {
        [XmlAttribute("value")]
        public string value { get; set; }

        /// <summary>
        /// 标识信息
        /// </summary>
        [XmlElementAttribute("xmlpath", IsNullable = false)]
        public List<AnalysisLabe> analysisLabes { get; set; }
    }

    /// <summary>
    /// 案由信息实体
    /// </summary>
    public class CaseCuaseLabel
    {
        [XmlAttribute("value")]
        public string value { get; set; }

        [XmlElementAttribute("xmlpath", IsNullable = false)]
        public List<AnalysisLabe> analysisLabes { get; set; }

    }
    [Serializable]
    [XmlRootAttribute("root", IsNullable = false)]
    public class AddressConfig
    {
        /// <summary>
        /// 案件类型转换方式读取
        /// </summary>
        [XmlElementAttribute("casetype", IsNullable = false)]
        public List<CaseTypeLabel> caseTypeLabelList { get; set; }

        /// <summary>
        /// 案由方式读取
        /// </summary>
        [XmlElementAttribute("casecause", IsNullable = false)]
        public List<CaseCuaseLabel> CaseCuaseLabelList { get; set; }
    }

    [Serializable]
    [XmlRootAttribute("root", IsNullable = false)]
    public class ProcessingCofing
    {
        [XmlElementAttribute("OriginalText", IsNullable = false)]
        public List<OriginalTextModel> originalTextList { get; set; }
    }

    public class OriginalTextModel {

        [XmlAttribute("XmlPath")]
        public string XmlPath { get; set; }
        [XmlAttribute("regcode")]
        public string Regcode { get; set; }

        [XmlElementAttribute("value", IsNullable = false)]
        public List<ValuesModel> valueList { get; set; }
    }

    public class ValuesModel 
    {
        [XmlAttribute("XmlPath")]
        public string XmlPath { get; set; }

    }
}
